﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SenseSDKExtendedDemoCSharp
{
    public partial class frm_general : Form
    {
        public frm_general()
        {
            InitializeComponent();
        }

        private bool _isVGA()
        {
            return StedySoft.SenseSDK.DrawingCE.Resolution.ScreenIsVGA;
        }

        private void frm_general_Load(object sender, EventArgs e)
        {

            SenseSDKExtended.SenseDividerItem.Style1 dvd = new SenseSDKExtended.SenseDividerItem.Style1();
            dvd.Bounds = new Rectangle(0,0,Screen.PrimaryScreen.Bounds.Width,_isVGA() ? 32 : 16);
            this.Controls.Add(dvd);

            SenseSDKExtended.SenseSeperatorItem.Style1 sep = new SenseSDKExtended.SenseSeperatorItem.Style1();
            sep.Bounds = new Rectangle(0, 34, Screen.PrimaryScreen.Bounds.Width, 1);
            this.Controls.Add(sep);
        }
    }
}